From 25ed7cd1d566d33ac181e8cb45bd070e2a80ceb0 Mon Sep 17 00:00:00 2001 From: Jens Frank Date: Tue, 11 Jan 2005 00:06:00 +0000 Subject: [PATCH] BUG#1205 Use is_array instead of trusting implicit type conversion --- includes/Article.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/Article.php b/includes/Article.php index 3876d77492..7106bfbd8b 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -407,7 +407,7 @@ class Article { */ function getSelectOptions( $options = '' ) { if ( $this->mForUpdate ) { - if ( $options ) { + if ( is_array( $options ) ) { $options[] = 'FOR UPDATE'; } else { $options = 'FOR UPDATE'; -- 2.20.1